package com.ljxt.dt.vo.purchasingmanagement;

import com.ljxt.dt.util.xhq.StringUtil;

import java.util.Date;

/**
 * @author 徐浩钦
 * @version 1.0.0
 * @date 2020/5/18 20:41
 * @copyright 老九学堂T11
 */
public class CgddHandlerInfo {

    /**
     * 对应的采购订单
     */
    private String orderNo;
    /**
     * 经办人姓名
     */
    private String name;
    /**
     * 处理时间
     */
    private Date time;
    /**
     * 结果
     */
    private String result;
    /**
     * 处理类型
     */
    private String typeName;
    /**
     * 备注
     */
    private String remark;

    private String strTime;

    @Override
    public String toString() {
        return "CgddHandlerInfo{" +
                "orderNo='" + orderNo + '\'' +
                ", name='" + name + '\'' +
                ", time=" + time +
                ", result='" + result + '\'' +
                ", typeName='" + typeName + '\'' +
                ", remark='" + remark + '\'' +
                ", strTime='" + strTime + '\'' +
                '}';
    }

    public String getStrTime() {
        return strTime;
    }

    public void setStrTime(String strTime) {
        this.strTime = strTime;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
        this.strTime = StringUtil.dateFormat(time);
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result)  {
        if(result.equals("已完成")){
            result = "确认采购";
        }
        this.result = result;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
